package cn.tedu;
/*本类用于综合系统编写---科目划分*/
public class subject {
}
abstract class Curriculum{//总课程
    String linear;//线上
    int time ;//时间

    public Curriculum(String linear, int time) {
        this.linear = linear;
        this.time = time;
    }

    public abstract void Catalogue();//
}
class Java extends Curriculum{
    public Java(String linear, int time) {
        super(linear, time);
    }
@Override
    public void Catalogue(){
        System.out.println("后端开发,主要是面向对象,是一个跨平台的编程语言");
    }
}
class Python extends Curriculum{
    public Python(String linear, int time) {
        super(linear, time);
    }
    public void Catalogue(){
        System.out.println("简单编程语言 ,少儿编程教的主要语言,可以很好培养孩子的逻辑思维能力");
    }
}
class Wed extends Curriculum{
    public Wed(String linear, int time) {
        super(linear, time);
    }
    public void Catalogue(){
        System.out.println("前端开发,主要用于设计界面,已经测试维护");
    }
}